package com.liu.entity;

import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Order {
    @TableId(type = IdType.AUTO)
    @Alias("ID")
    private Integer id;
    @Alias("用户编号")
    private Integer userId;
    private User user;
    @Alias("编号")
    private String num;
    @Alias("医院编号")
    private Integer hosId;
    private Hospital hospital;
    @Alias("科室编号")
    private Integer depId;
    private Department department;
    @Alias("医师编号")
    private Integer phyId;
    private Physician physician;
    @Alias("日期")
    @JsonSerialize(using = com.liu.entity.CustomDateTimeSerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date date;
    @Alias("就诊时间编号")
    private Integer StaId;
    private Stage stage;
    @Alias("挂号状态")
    private String state;
}

